package com.googlecode.restitory.gae.rhino;

import java.util.Arrays;

import org.mozilla.javascript.Context;
import org.mozilla.javascript.Function;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.ScriptableObject;

public class RhinoGlobal extends ScriptableObject {

	private static final long serialVersionUID = 1734270615573866960L;

	public static String ping(Context cx, Scriptable thisObj, Object[] args,
			Function funObj) {
		return "x: " + thisObj + " " + Arrays.toString(args);
	}

	@Override
	public String getClassName() {
		return "RhinoGlobal";
	}

}
